package com.example.chartroom.mapper;

import com.example.chartroom.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    //插入user -》 注册
    int insert(User user);

    //根据用户名查询用户信息 -》登录
    User selectByName(String username);

    List<String> selectBySampleName(String username,List<String> names);
}
